using com.haopintui.util;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace com.haopintui.ui
{
	public class TestUI
	{
		public TabPage tabPageCms;
		public GroupBox groupBox40;
		public GroupBox groupBox41;
		public RichTextBox richTextBoxSts;
		public TextBox textBoxAppCmsReson;
		public Button button_cms_click_apply;
		public TestUI(CmsForm cmsForm)
		{
			this.InitializeComponent(cmsForm);
		}
		private void InitializeComponent(CmsForm cmsForm)
		{
			this.tabPageCms = new TabPage();
			this.tabPageCms.SuspendLayout();
			cmsForm.tabControlMain.Controls.Add(this.tabPageCms);
			this.groupBox40 = new GroupBox();
			this.groupBox41 = new GroupBox();
			this.tabPageCms.Controls.Add(this.groupBox40);
			this.tabPageCms.Controls.Add(this.groupBox41);
			this.groupBox40.SuspendLayout();
			this.groupBox41.SuspendLayout();
			this.groupBox40.Location = new Point(16, 11);
			this.groupBox40.Name = "groupBox40";
			this.groupBox40.Size = new Size(433, 477);
			this.groupBox40.TabIndex = 54;
			this.groupBox40.TabStop = false;
			this.groupBox40.Text = "测试功能";
			this.groupBox40.ResumeLayout(false);
			this.groupBox40.PerformLayout();
			this.groupBox41.Location = new Point(495, 11);
			this.groupBox41.Name = "groupBox41";
			this.groupBox41.Size = new Size(751, 477);
			this.groupBox41.TabIndex = 54;
			this.groupBox41.TabStop = false;
			this.groupBox41.Text = "执行状况";
			this.groupBox41.ResumeLayout(false);
			this.groupBox41.PerformLayout();
			this.richTextBoxSts = new RichTextBox();
			this.groupBox41.Controls.Add(this.richTextBoxSts);
			this.richTextBoxSts.HideSelection = false;
			this.richTextBoxSts.Location = new Point(5, 14);
			this.richTextBoxSts.Name = "richTextBoxSts";
			this.richTextBoxSts.ReadOnly = true;
			this.richTextBoxSts.Size = new Size(745, 458);
			this.richTextBoxSts.TabIndex = 2;
			this.richTextBoxSts.Text = "";
			this.textBoxAppCmsReson = new TextBox();
			this.button_cms_click_apply = new Button();
			this.groupBox40.Controls.Add(this.textBoxAppCmsReson);
			this.groupBox40.Controls.Add(this.button_cms_click_apply);
			this.textBoxAppCmsReson.Location = new Point(9, 178);
			this.textBoxAppCmsReson.Name = "textBoxAppCmsReson";
			this.textBoxAppCmsReson.Size = new Size(387, 85);
			this.textBoxAppCmsReson.TabIndex = 17;
			this.button_cms_click_apply.Location = new Point(92, 290);
			this.button_cms_click_apply.Name = "button_cms_click_apply";
			this.button_cms_click_apply.Size = new Size(141, 27);
			this.button_cms_click_apply.TabIndex = 29;
			this.button_cms_click_apply.Text = "跟踪阿里妈妈cookie";
			this.button_cms_click_apply.UseVisualStyleBackColor = true;
			this.button_cms_click_apply.BackColor = Color.Green;
			this.button_cms_click_apply.ForeColor = Color.White;
			this.button_cms_click_apply.Click += delegate(object o, EventArgs e)
			{
				this.button_cms_click_apply_click(o, cmsForm);
			};
			this.tabPageCms.Location = new Point(4, 29);
			this.tabPageCms.Name = "tabPageCms";
			this.tabPageCms.Padding = new Padding(3);
			this.tabPageCms.Size = new Size(1253, 531);
			this.tabPageCms.TabIndex = 0;
			this.tabPageCms.Text = "测试功能";
			this.tabPageCms.UseVisualStyleBackColor = true;
			this.tabPageCms.ResumeLayout(false);
		}
		public void button_cms_click_apply_click(object sender, object formOfSender)
		{
			CmsForm cmsForm = (CmsForm)formOfSender;
			if (!cmsForm.appBean.alimama_cookie_put_url_status)
			{
				TestUtil.cms_put_taoke_alimama_cookie_url(cmsForm, 1);
				return;
			}
			TestUtil.cms_put_taoke_alimama_cookie_url(cmsForm, 0);
		}
	}
}
